[HVMLOADER] Fix SMBIOS table code. One of the string lengths is incorrectly computed.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 4 Oct 2006 08:32:01 +0000 (09:32 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 4 Oct 2006 08:32:01 +0000 (09:32 +0100)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/firmware/hvmloader/smbios.c

index f80facdfe5f8cc1dea4c4f4d7b80cb9450c0e028..723cc2d6935240114b3e4c26da4ad5fbe9d86e7c 100644 (file)
@@ -434,7 +434,7 @@ smbios_type_4_init(void *start, unsigned int cpu_number, char *cpu_manufacturer)
        start += strlen(buf) + 1;
 
        strcpy((char *)start, cpu_manufacturer);
-       start += strlen(buf) + 1;
+       start += strlen(cpu_manufacturer) + 1;
 
        *((uint8_t *)start) = 0;
        return start+1;